#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int n;
	char c;
	printf("Input a string: \n");
	n = 0;
	while ((c = getchar()) != '\n')
		n++;
	printf("%d", n);
	return 0;
}
